import React, {FC} from 'react';
import './App.scss';
import {useNavigate} from "react-router-dom";

const App: FC<any> = () => {
    const navigate = useNavigate()
    // 按钮点击事件
    const clickState = () => {
        // 路由跳转
        navigate('/task')
    }
    return (
        <div className="App">
            <button onClick={clickState}>启动应用</button>
        </div>
    );
}

export default App;
